<?php
namespace Mouta\SeowebBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class SitioType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('nombre')
            ->add('categoria')
            ->add('url','url')
            ->add('descripcion') 
        ;            
        
    }
    
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Mouta\SeowebBundle\Entity\Pagina'
        ));
    }

    
    public function getName()
    {
        return 'seoweb_sitio';
    }
}